# coding: utf-8

"""
	>>> 2 ** 16
	65536
	>>> 2 ** 32                                          #doctest: +SKIP
	4294967296L
	>>> print(2**32)
	4294967296
	>>> 2 / 5, 2 / 5.0                                   #doctest: +SKIP
	(0, 0.40000000000000002)
	>>> 2 // 5
	0
	>>> print(2 / 5.0) 
	0.4
	>>> "spam" + "eggs"
	'spameggs'
	>>> S = "ham"
	>>> "eggs " + S
	'eggs ham'
	>>> S * 5
	'hamhamhamhamham'
	>>> S[:0]
	''
	>>> "green %s and %s" % ("eggs", S)
	'green eggs and ham'
	>>> ('x',)[0]
	'x'
	>>> ('x', 'y')[1]
	'y'
	>>> L = [1, 2, 3] + [4, 5, 6]
	>>> L, L[:], L[:0], L[-2], L[-2:]
	([1, 2, 3, 4, 5, 6], [1, 2, 3, 4, 5, 6], [], 5, [5, 6])
	>>> ([1, 2, 3] + [4, 5, 6])[2:4]
	[3, 4]
	>>> (L[2], L[3])
	(3, 4)
	>>> L.reverse()
	>>> L
	[6, 5, 4, 3, 2, 1]
	>>> reversed(L)                                  #doctest: +ELLIPSIS
	<list...reverseiterator object at ...>
	>>> list(reversed(L))
	[1, 2, 3, 4, 5, 6]
	>>> L
	[6, 5, 4, 3, 2, 1]
	>>> sorted(L)
	[1, 2, 3, 4, 5, 6]
	>>> L
	[6, 5, 4, 3, 2, 1]
	>>> L.sort(); L
	[1, 2, 3, 4, 5, 6]
	>>> L.sort()
	>>> L
	[1, 2, 3, 4, 5, 6]
	>>> L.index(4)
	3
	>>> {'a':1, 'b':2}['b']
	2
	>>> D = {'x':1, 'y':2, 'z':3}
	>>> D
	{'y': 2, 'x': 1, 'z': 3}
	>>> D['w'] = 0
	>>> D
	{'y': 2, 'x': 1, 'z': 3, 'w': 0}
	>>> D['x'] + D['w']
	1
	>>> D[(1,2,3)] = 4
	>>> D
	{'y': 2, 'x': 1, 'z': 3, 'w': 0, (1, 2, 3): 4}
	>>> D.keys(), D.values(), (1, 2, 3) in D             #doctest: +SKIP
	(['y', 'x', 'z', 'w', (1, 2, 3)], [2, 1, 3, 0, 4], True)
	>>> list(D.keys()), list(D.values()), (1, 2, 3) in D
	(['y', 'x', 'z', 'w', (1, 2, 3)], [2, 1, 3, 0, 4], True)
	>>> D.has_key((1,2,3))                               #doctest: +SKIP
	True
	>>> [[]], ["", [], (), {}, None]
	([[]], ['', [], (), {}, None])

"""
if __name__ == '__main__':
	import doctest
	doctest.testmod()

